
function websiteNoteHash() {
	this.nextid = 0;
	this.noteArray = new Array();
	this.getNextID = function() {
		var retVal = this.nextid;
		this.nextid++;
		return retVal;
	}
  this.length = function() {
		this.noteArray.length;
	}
	this.addNote = function(note) {
		this.noteArray[this.getNextID()] = note;
	}
	this.getNote = function(uuid) {
		for (var x = 0; x < this.noteArray.length; x++) {
			if (this.noteArray[x].uuid == uuid) return this.noteArray[x];
		}
	}
	this.setNote = function(uuid, note) {
		for (var x = 0; x < this.noteArray.length; x++) {
			if (this.noteArray[x].uuid == uuid) this.noteArray[x] = note;
		}
	}
	this.trashNote = function(uuid) {
		for (var x = 0; x < this.noteArray.length; x++) {
			if (this.noteArray[x].uuid == uuid) {
				if (x != ( this.noteArray.length - 1) ) {
					this.noteArray[x] = this.noteArray[ this.noteArray.length - 1 ];
					this.nextid--;
				}
				delete this.noteArray[ this.noteArray.length - 1 ];
			}
		}
	}
	return this;
}